//
//  K_ROOMCell.m
//  K-Music
//
//  Created by CHUN on 16/1/26.
//  Copyright © 2016年 CHUN. All rights reserved.
//

#import "K_ROOMCell.h"

@implementation K_ROOMCell

-(id)initWithFrame:(CGRect)frame{
    
    self=[super initWithFrame:frame];
    
    if (self) {
        
        _dt=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, WIDTH/2, HEIGHT/4)];
        _dt.image=[UIImage imageNamed:@"组-3"];
        [self addSubview:_dt];
        
        _K1_img=[[UIImageView alloc]initWithFrame:CGRectMake(WIDTH/8, HEIGHT/8, 20, 20)];
        _K1_img.image=[UIImage imageNamed:@"person_K"];
        [_dt addSubview:_K1_img];
        
        _mylabel=[[UILabel alloc]initWithFrame:CGRectMake(0, HEIGHT/8, WIDTH/2, 30)];
        _mylabel.text=@" 人数";
        _mylabel.font = [UIFont systemFontOfSize:15];
        _mylabel.textColor=[UIColor whiteColor];
        _mylabel.textAlignment=NSTextAlignmentCenter;
        [_dt addSubview: _mylabel];
        
        _K2_img=[[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(_mylabel.frame)+10, HEIGHT/8, 20, 20)];
        _K2_img.image=[UIImage imageNamed:@"person_k2"];
//        [_dt addSubview:_K2_img];
        
        _my_name=[[UILabel alloc]initWithFrame:CGRectMake(5,CGRectGetMaxY(_mylabel.frame), WIDTH/2, 30)];
        _my_name.text=@"黑神";
        _my_name.textColor=[UIColor whiteColor];
        _my_name.font = [UIFont systemFontOfSize:13];
        _my_name.textAlignment=NSTextAlignmentCenter;
        [_dt addSubview: _my_name];
        
        _room_num_label=[[UILabel alloc]initWithFrame:CGRectMake(5, CGRectGetMaxY(_my_name.frame), WIDTH/2, 30)];
        _room_num_label.text=@"房号";
        _room_num_label.textColor=[UIColor whiteColor];
        _room_num_label.font = [UIFont systemFontOfSize:13];
        _room_num_label.textAlignment=NSTextAlignmentCenter;
        [_dt addSubview: _room_num_label];
        
        
        
        _my_fun=[[UILabel alloc]initWithFrame:CGRectMake(WIDTH/4, _dt.frame.size.height-30, WIDTH/4, 30)];
        _my_fun.text = @"1234人";
        _my_fun.font = [UIFont systemFontOfSize:13];
        _my_fun.textColor=[UIColor whiteColor];
        _my_fun.textAlignment=NSTextAlignmentCenter;
//        [_dt addSubview: _my_fun];
        
    }
    return self;
}


@end
